package com.imu.service.impl;

import com.imu.dao.UserDao;
import com.imu.domain.User;
import com.imu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public boolean selectUser(String username, String password) {
        User user = userDao.selectById(1);
        if (user != null){
            return true;
        }else {
            return false;
        }
    }
}
